package book;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA
 * Description:书架
 * User:22954
 * Date:2024-01-12
 * Time:20:32
 */
public class BookList {
    ArrayList<Book> books = new ArrayList<>();

    public BookList() {
        books.add(new Book("三国演义", "罗贯中", 80, "小说"));
        books.add(new Book("水浒传", "施耐庵", 70, "小说"));
        books.add(new Book("西游记", "吴承恩", 78, "小说"));
        books.add(new Book("红楼梦", "曹雪芹", 86, "小说"));
        books.add(new Book("Harry Potter","J.K Rowling",72,"novel"));
    }

    public ArrayList<Book> getBooks() {
        return books;
    }
}
